import { _decorator, Component, Node } from 'cc';
import { GameApp } from './Game/GameApp';
import EventMgr from './Mangaers/EventMgr';
import NetMgr from './Mangaers/NetMgr';
import { plog } from './Utils/Tools';
const { ccclass, property } = _decorator;

@ccclass('GameLanch')
export class GameLanch extends Component {
    protected onLoad(): void {
        //加载网络模块，资源模块，协议模块
        this.node.addComponent(EventMgr)
        this.node.addComponent(NetMgr)
        //游戏模块
        this.node.addComponent(GameApp);
    }
    start() {
        //检查资源更新
        GameApp.Instance.GameStart();
    }

    update(deltaTime: number) {

    }
}


